package com.ibeeking.gmc.global.g.rest.controller.v1;

import com.ibeeking.gmc.global.service.common.param.TenantPermissionParam;
import com.ibeeking.nematos.constants.enums.OperateLogTypeEnum;
import com.ibeeking.nematos.log.annotation.Log;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @ClassName TenantPermissionController
 * @Description
 * @Author ibeeking
 * @Date 2020-12-24 09:21
 **/
@RestController
@RequestMapping("/g/tenantPermission/v1")
public class TenantPermissionController {

    @Resource
    private com.ibeeking.gmc.global.g.rest.service.ITenantService ITenantService;

    @Log(logType = OperateLogTypeEnum.MODIFY, describe = "配置租户菜单")
    @PostMapping(value = "/configurePermission")
    public Boolean configurePermission(@RequestBody @Validated TenantPermissionParam param) {
        return ITenantService.configurePermission(param);
    }
}
